/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mvc.example;

import java.util.logging.Level;
import java.util.logging.Logger;
import mvc.example.bussines.BussinesFactory;
import mvc.example.bussines.IStudentManager;
import mvc.example.bussines.ManagerException;
import mvc.example.presentation.controller.StudentsController;
import mvc.example.presentation.model.StudentsModel;

/**
 *
 * @author Zeta
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                @Override
                public void run() {
                    IStudentManager studentManager = BussinesFactory.getStudentManager();
                    StudentsModel studentsModel = null;
                    try {
                        studentsModel = new StudentsModel(studentManager.getRegularStudents());
                    } catch (ManagerException ex) {
                        Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
                    }
                    StudentsController studentsController = new StudentsController(studentsModel);
                    StudentsController studentsController1 = new StudentsController(studentsModel);
                    
                }
            });
    }
}
